First Container Launch
We are going to launch a nginx server in the Fargate.
- Logged in with a user ecs-coursewe created.
- Go to service Elastic Container Service
- Click get started
- We have to
- Define container
- Define task
- Define service
- Define Cluster
Define Container
- Select nginx
- Ensure CompatibilitiesasFARGATE
- We can change the configuration by click Edit, ex change the name toquickstart-nginx-td
- Click nextand define the service
In the top image, you should notice, the Container and Task definition is completed by green check mark.
- From the Editbutton we can change the service name and lets make the namequickstart-nginx-service
- Click nextand define the cluster
In the top image this time the service should also get the green check mark.
- In cluster section, change the name to qucikstart-nginx-cluster
- Click next, review all the config and created all the services, it might take couple of minutes.
- After completion, we can view the services by clicking the View Servicebutton.
Now, when we go to the ECS service dashboard, we should see our created cluster. Go to the cluster qucikstart-nginx-cluster
From the Task details, we can get the IP of the server. If we visit, we should see Welcome to nginx!.
To avoid any unnecessary costing/billing, select the service and delete it.
To delete,
- From ECSdashboard, select the cluster and go to details
- Select the service and delete it
To make sure the service is deleted, under the cluster dashboard, 0 services and 0 tasks are running.